<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_order('pay')}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>拼团列表</h2>
				</div>
				<div class="sect" style="padding:0 10px;">
					<form method="get">
						<p style="margin:5px 0;">订单编号：<input type="text" name="id" value="${htmlspecialchars($id)}" class="h-input"/>&nbsp;用户：
						<input type="text" name="uemail" class="h-input" value="${htmlspecialchars($uemail)}" >&nbsp;
						项目编号：<input type="text" name="team_id" class="h-input number" value="{$team_id}" >
						
						</p>
						<p style="margin:5px 0;display:none;">下单日期：<input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="cbday" value="{$cbday}" /> - <input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="ceday" value="{$ceday}" />&nbsp;
						付款日期：<input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="pbday" value="{$pbday}" /> - <input type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="peday" value="{$peday}" />
						
						&nbsp;发货状态：<select name="is_fahuo">
						<option value="0" <!--{if $is_fahuo == 0}-->selected <!--{/if}-->>全部</option> 
						<option value="1" <!--{if $is_fahuo == 1}-->selected <!--{/if}-->>已发货</option> 
						<option value="2" <!--{if $is_fahuo == 2}-->selected <!--{/if}-->>未发货</option>
						</select>
						</p>
						<p style="margin:5px 0;"><input type="submit" value="搜索" class="formbutton"  style="padding:1px 6px;"/></p>
					<form>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr>
						<th width="40">ID</th>
						<th width="100">团长订单id</th>
						<th width="340">商品名称</th>
						<th width="80" nowrap>拼团价</th>
						<th width="100">团长姓名</th>
						<th width="80" nowrap>几人团</th>
						<th width="180" nowrap>开始时间</th>
						<th width="50" nowrap>操作</th>
					</tr>
					<!--{loop $pin_orders $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td>{$one['tuan_order_id']}</td>
						<td>(id:{$one['tuan_team_id']}){$one['tuan_team_title']}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['pin_price'])}</td>
						<td>{$one['username']}</td>
						<td>{$one['need_count']}</td>
						<td>{$one['createtime']}</td>
						<td>
							<a href="/ajax/manage.php?action=pinorderview&id={$one['id']}" class="ajaxlink">详情</a>
						</td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="9">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
